From: Jonas Ã…dahl Date: Fri, 25 Nov 2022 17:02:34 +0000 (+0100) Subject: searchController: Use connectObject for the stage key focus signal X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~231 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e62eae74fd120f7fe6fd8c9be80ba9e866a0c83b;p=gnome-shell.git searchController: Use connectObject for the stage key focus signal This ensures it's properly disconnected on shutdown. Part-of: --- diff --git a/js/ui/searchController.js b/js/ui/searchController.js index ba743a909..ef7a9d50e 100644 --- a/js/ui/searchController.js +++ b/js/ui/searchController.js @@ -68,7 +68,8 @@ var SearchController = GObject.registerClass({ this._searchResults.popupMenuDefault(); }); this._entry.connect('notify::mapped', this._onMapped.bind(this)); - global.stage.connect('notify::key-focus', this._onStageKeyFocusChanged.bind(this)); + global.stage.connectObject('notify::key-focus', + this._onStageKeyFocusChanged.bind(this), this); this._entry.set_primary_icon(new St.Icon({ style_class: 'search-entry-icon',